<extend name="Public/base"/>

<block name="body">
  <div class="main-title">
    <h2>快递公司</h2>
  </div>
  <style>
  table.search {
    margin: 12px 0 6px 4px;
}
tr {background: rgb(255, 255, 255);}
.tb-type1 th {
    padding: 5px 5px 3px 0;
    line-height: 21px;
    color: #333;
}
th {
    text-align: left;
}
  </style>

  <div class="cf">
    <a class="btn" href="{:U('add')}">新 增</a>
    <table class="tb-type1 noborder search">
      <tbody>
        <tr style="background: rgb(255, 255, 255);">
          <th><label for="search_brand_name">首字母</label></th>
          <td>
                <a href="{:U('index',array('letter'=>'A'))}">A</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'B'))}">B</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'C'))}">C</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'D'))}">D</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'E'))}">E</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'F'))}">F</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'G'))}">G</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'H'))}">H</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'I'))}">I</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'J'))}">J</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'K'))}">K</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'L'))}">L</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'M'))}">M</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'N'))}">N</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'O'))}">O</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'P'))}">P</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'Q'))}">Q</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'R'))}">R</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'S'))}">S</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'T'))}">T</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'U'))}">U</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'V'))}">V</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'W'))}">W</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'X'))}">X</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'Y'))}">Y</a>&nbsp;&nbsp;
                <a href="{:U('index',array('letter'=>'Z'))}">Z</a>&nbsp;&nbsp;
         </td>
        </tr>
      </tbody>
    </table>
    <!-- 高级搜索 -->
  </div>

  <div class="data-table table-striped">
    <form class="ids">
      <table>
        <thead>
          <tr>
            <th>ID</th>
            <th>公司名称</th>
            <th>首字母</th>
            <th>公司地址</th>
            <th>排序</th>
            <th>状态</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
        <notempty name="lists">
        <volist name="lists" id="vo">
          <tr class="status_trclass_{$vo['status']}">
            <td>{$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.letter}</td>
            <td>{$vo.url}</td>
            <td><input class="J_ajax_updatefield text input-mini" type="text" data-action="{:U('setFieldValue')}" data-id="{$vo.id}" name="sort" value="{$vo['sort']}" title="数字越大越靠前"></td>
            <td>{$vo.status_text}</td>
            <td>
              <a href="{:U('setStatus?ids='.$vo['id'].'&status='.abs(1-$vo['status']))}" class="ajax-get">[{$vo.status_text}]</a>
              <a title="编辑" href="{:U('edit?id='.$vo['id'])}">[编辑]</a>
            </td>
          </tr>
        </volist>
        <else/>
        <td colspan="10" class="text-center"> aOh! 暂时还没有内容! </td>
        </notempty>
        </tbody>
      </table>
    </form>
    <!-- 分页 -->
    <div class="page">
        {$_page}
    </div>
  </div>
</block>

<block name="script">
  <script type="text/javascript">
    $(function() {
      //导航高亮
      highlight_subnav('{:U('index')}');
      
    });
  </script>
</block>